package com.oak.designmode._09_prototype;

/**
 * 原型模式
 *
 * @Author guoxy
 * @Date 2020/2/27
 * @Version 1.0
 */
public class Test {

    public static void main(String[] args) throws CloneNotSupportedException {

        Resume r = new Resume();
        r.setAge(11);
        System.out.println(r);
        r.setAge(22);
        Resume r1 = (Resume) r.clone();
        System.out.println(r1);
        System.out.println(r1 == r);
    }
}
